#include <gtk/gtk.h>
#include <libnemo-private/nemo-trash-monitor.h>

static void
trash_state_changed (NemoTrashMonitor *trash_monitor,
			gboolean             state,
			gpointer             data)
{
    g_print ("trash_state_changed\n");
    gtk_main_quit ();
}


int 
main (int argc, char* argv[])
{
    gtk_init (&argc, &argv);

    NemoTrashMonitor *monitor;
    GIcon *gicon;
    monitor = nemo_trash_monitor_get ();
    gicon = nemo_trash_monitor_get_icon ();

    g_signal_connect (monitor, "trash_state_changed",
                        G_CALLBACK (trash_state_changed), NULL);

    g_print ("trash monitor symbolic_icon_name:%s\n", nemo_trash_monitor_get_symbolic_icon_name ());
    g_print ("trash monitor icon name:%s\n", g_icon_to_string (gicon));
    g_print ("nemo_trash_monitor_is_empty:%d\n", nemo_trash_monitor_is_empty ());

    g_object_unref (gicon);
    gtk_main ();
    return 0;
}